#include "stdafx.h"
#include "UConsoleProgramWindow.h"
#include "libexecstream/exec-stream.h"

#include <iostream>
#include <algorithm>

using namespace std;

TConsoleProgramWindow::TConsoleProgramWindow(std::string program)
{
	exec_stream_t exec_stream;
	exec_stream.start( program, "" );

	exec_stream.in() << "dir\n";
	exec_stream.in() << "exit\n";
	string s;
	while (getline(exec_stream.out(), s)) {
		//cout << s << '\n'; Dont do that!
	}

}

void TConsoleProgramWindow::Draw( ) {
}
